package com.culturalCenter.dataCenter.mapper.activity;

import com.culturalCenter.dataCenter.entity.activity.ActivityServedNumbers;
import com.culturalCenter.dataCenter.mapper.base.BaseMapper;
import com.culturalCenter.dataCenter.param.ServiceVolumeParam;
import com.culturalCenter.dataCenter.vo.PassengerFlowVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
* @Entity com.culturalCenter.dataCenter.entity.activity.CdcActivityServedNumber
*/
public interface ActivityServedNumberMapper extends BaseMapper<ActivityServedNumbers> {
    int insert(@Param("servedNumber") ActivityServedNumbers activityServedNumbers);//添加今日的服务人次

    ActivityServedNumbers findOne(@Param("today")Date date);//查询今天是否有记录

    int update(@Param("servedNumber") ActivityServedNumbers activityServedNumbers);//修改今日的服务人次

    List<ActivityServedNumbers> queryAll();//查询所有记录

    List<PassengerFlowVo> getCurrentMonthReport(@Param("type") String type);

    void addServiceVolume(@Param("param") ServiceVolumeParam param);
}
